import _fetch from "api_xukaiyu/fetch";
/**
 * 取消文章置顶
 * @param { Object } data 请求参数
 * {
 *   id 文章id
 * }
 */
export function untop(data) {
  return _fetch({
    url: "backend/article/untop",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 保存或更新记录
 * @param { Object } data 请求参数
 * {
 *   articlePic undefined
 *   publishTime undefined
 *   articleTitle undefined
 *   creator undefined
 *   gmtModified undefined
 *   gmtCreated undefined
 *   author undefined
 *   modifier undefined
 *   authorId undefined
 *   topTime undefined
 *   isDeleted undefined
 *   articleType undefined
 *   isTop undefined
 *   articleStatus undefined
 *   articleContent undefined
 *   id undefined
 * }
 */
export function update(data) {
  return _fetch({
    url: "backend/article/update",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 删除记录
 * @param { Object } data 请求参数
 * {
 *   id undefined
 * }
 */
export function _delete(data) {
  return _fetch({
    url: "backend/article/delete",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 查询一条记录
 * @param { Object } data 请求参数
 * {
 *   id undefined
 * }
 */
export function get_one(data) {
  return _fetch({
    url: "backend/article/get_one",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 查询列表
 * @param { Object } data 请求参数
 * {
 *   articlePic undefined
 *   publishTime undefined
 *   articleTitle undefined
 *   creator undefined
 *   gmtModified undefined
 *   gmtCreated undefined
 *   author undefined
 *   modifier undefined
 *   authorId undefined
 *   topTime undefined
 *   isDeleted undefined
 *   articleType undefined
 *   isTop undefined
 *   articleStatus undefined
 *   articleContent undefined
 *   id undefined
 * }
 */
export function query_list(data) {
  return _fetch({
    url: "backend/article/query_list",
    method: "POST",
    data: data,
    headers: {}
  });
}